﻿using HuaWei;
using System;
using System.ComponentModel;
using System.Drawing;
using System.IO;
using System.Windows.Forms;

namespace HongXiang.Windows.Forms
{
    public class frmFlash : Form
    {
        private IContainer icontainer;
        private PictureBox picBackGround;

        public frmFlash()
        {
            this.icontainer = null;
            this.InitializeComponent();
        }

        public Form CreateFlashForm()
        {
            return new frmFlash();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.icontainer != null))
            {
                this.icontainer.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.picBackGround = new System.Windows.Forms.PictureBox();
            ((System.ComponentModel.ISupportInitialize)(this.picBackGround)).BeginInit();
            this.SuspendLayout();
            // 
            // picBackGround
            // 
            this.picBackGround.BackColor = System.Drawing.Color.Black;
            this.picBackGround.BackgroundImage = global::Properties.Resources.picBackGround_Image;
            this.picBackGround.Location = new System.Drawing.Point(1, 1);
            this.picBackGround.Name = "picBackGround";
            this.picBackGround.Size = new System.Drawing.Size(567, 336);
            this.picBackGround.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
            this.picBackGround.TabIndex = 0;
            this.picBackGround.TabStop = false;
            // 
            // frmFlash
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor = System.Drawing.Color.Black;
            this.ClientSize = new System.Drawing.Size(569, 338);
            this.Controls.Add(this.picBackGround);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.Name = "frmFlash";
            this.ShowInTaskbar = false;
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "frmFlash";
            this.TopMost = true;
            ((System.ComponentModel.ISupportInitialize)(this.picBackGround)).EndInit();
            this.ResumeLayout(false);

        }

        private void method()
        {
            string filename = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "System.ini");
            try
            {
                string str2 = IniFile.ReadIniFile(filename, "Options", "FlashImage", false);
                str2 = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, str2);
                if (File.Exists(str2))
                {
                    this.picBackGround.Image = Image.FromFile(str2);
                }
            }
            catch (Exception exception)
            {
                string message = exception.Message;
            }
        }

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
        }
    }
}

